package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/stu")
public class FrontController {

    @GetMapping("/bookDetail")
    public String bookDetail(@RequestParam(value = "book_name")String book_name,
                             Model model){
        model.addAttribute("book_name",book_name);
        return "front/bookDetail";
    }

}
